package com.by.service.impl;

import com.by.dao.StudentDao;
import com.by.entity.Student;
import com.by.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("studentService")
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentDao studentDao;

    @Override
    public List<Student> getAllStus() {
        return studentDao.getAllStus();
    }

    public Student login(Student student) {
        return studentDao.login(student);
    }

}
